let vm = new Vue({
    el: '.main-content',
    data: {
        pageInfo: {},
        log: {},
        condition:{
            type:''
        },
        active: true
    },
    methods: {
        selectPage: function (pageNum = 1, pageSize = 15) {
            axios({
                url: `mapper/syslog/selectPage/${pageNum}/${pageSize}`,
                params: this.condition
            }).then(response => {
                this.pageInfo = response.data.obj;
            }).catch(error => {
                console.log(error.message)
            })
        },
        toUpdate:function(log){
            layer.obj=log;
            layer.open({
                type: 2,
                title: false,
                area: ['70%', '70%'],
                content: 'mapper/syslog/toUpdate',
            })
        }
    },
    created: function () {
        this.selectPage();

    }

});